package com.snake.springboot.authority.api.service;

import com.snake.springboot.authority.api.model.AuthInterfaceModel;
import com.snake.springboot.authority.api.model.AuthRuleModel;
import com.snake.springboot.authority.api.request.AuthInterfaceQuery;
import org.snake.common.result.ReturnList;

import java.util.List;

public interface AuthInterfaceService {

    AuthInterfaceModel addInterface(AuthInterfaceModel model) throws Exception;

    int modifyInterface(AuthInterfaceModel model) throws Exception;

    int removeInterface(String interfaceId);

    AuthInterfaceModel querySingleInterface(String interfaceId);

    ReturnList<AuthInterfaceModel> queryInterfaceList(AuthInterfaceQuery params) throws Exception;

    List<AuthRuleModel> queryAuthRuleList(AuthInterfaceModel params) throws Exception;
}
